package com.gxgeek.javabasic.base.valuepassed;

/**
 * Created by Administrator on 2017/7/9.
 */
public class Example {

    String str = new String("good");
    char[] ch = {'a','b','c'};

    public static void main(String[] args) {
        Example exception = new Example();
        exception.change(exception.str,exception.ch);
        System.out.println(exception.str);
        System.out.println(exception.ch);
    }
    public void change(String str,char [] ch){
            str = "test ok";
            ch[0]= 'g';
    }
}
